//引入封装的reuest请求
const {
  request
} = require("./request.js");
//基于业务封装的接口
module.exports = {
	// 会员列表
	memberL() {
	  return request({
	    url: "/index.php/api/banner/memberList",
	    method: "POST",
	  });
	},
	
	// 会员详情
	memberDetails(id) {
	   return request({
	     url: "/index.php/api/banner/memberInfo?id="+id,
	     method: "GET"
	   });
	 },
	 
	 // 报名列表
	 getActivity(data) {
	   return request({
	     url: "/index.php/api/banner/activityList",
	     method: "POST",
		 data
	   });
	 },
	 
	 // 关于我们
	 getAbout() {
	   return request({
	     url: "/index.php/api/banner/aboutInfo",
	     method: "POST",
	   });
	 },
	 
	 // 订阅消息
	 getdyxx(data) {
	   return request({
	     url: "/index.php/api/shop/getSubscribePermission",
	     method: "POST",
		 data
	   });
	 },
	 
	 // 发送消息
	 getfsxx(data) {
	   return request({
	     url: "/index.php/api/shop/sendSubscribeMessage",
	     method: "POST",
	 		 data
	   });
	 },
	 
	 // 查找openid
	 getopenid(data) {
	   return request({
	     url: "/index.php/api/shop/getopenid",
	     method: "POST",
	 		 data
	   });
	 },
	 
	 // 上传图片
	 // getUpload(data) {
	 //   return request({
	 //     url: "/index.php/api/banner/upload",
	 //     method: "POST",
		//  data
	 //   });
	 // },
};